package jmu.edu.yjc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import jmu.edu.yjc.domain.ResponseResult;
import jmu.edu.yjc.domain.dto.ArticleDto;
import jmu.edu.yjc.domain.entity.Article;


/**
 * 文章表(Article)表服务接口
 *
 * @author makejava
 * @since 2023-02-05 15:52:35
 */
public interface ArticleService extends IService<Article> {
    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId, String searchString);

    ResponseResult getArticle(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult addArticle(ArticleDto articleDto);

    ResponseResult selectArticlePage(Article article, Integer pageNum, Integer pageSize,Integer userId);

    ResponseResult getAnnouncement(Integer pageNum, Integer pageSize, String title);

    ResponseResult getArticleAndUpdateViewCount(Long id);

    ResponseResult getHotArticle();

    ResponseResult getRecommendArticle();

    ResponseResult getSearchArticle(String search);
}

